package cn.funnyxb.powerremember.beans;

import android.database.Cursor;
import android.util.Log;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.HashMap;
import javax.xml.parsers.FactoryConfigurationError;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;

public class WordBase
{
  private String downUrl;
  private String fileName;
  private int fileSize;
  private int id;
  private String intro;
  private String name;
  private String tbExtName;
  private long updateTime;
  private long wordsCnt;

  private static void log(String paramString)
  {
    Log.i("wordbase", paramString);
  }

  public static WordBase parseAWordBaseFromCursor(Cursor paramCursor)
  {
    WordBase localWordBase = new WordBase();
    localWordBase.id = paramCursor.getInt(paramCursor.getColumnIndex("_id"));
    localWordBase.name = paramCursor.getString(paramCursor.getColumnIndex("name"));
    localWordBase.wordsCnt = paramCursor.getLong(paramCursor.getColumnIndex("wordcount"));
    localWordBase.intro = paramCursor.getString(paramCursor.getColumnIndex("intro"));
    localWordBase.tbExtName = paramCursor.getString(paramCursor.getColumnIndex("tableextname"));
    log("getAWrodBase=" + localWordBase);
    return localWordBase;
  }

  public static WordBase parseWordBaseFromAttributes(Attributes paramAttributes)
  {
    WordBase localWordBase = new WordBase();
    localWordBase.id = Integer.parseInt(paramAttributes.getValue(paramAttributes.getIndex("_id")));
    localWordBase.name = paramAttributes.getValue(paramAttributes.getIndex("name"));
    localWordBase.fileSize = Integer.parseInt(paramAttributes.getValue(paramAttributes.getIndex("filesize")));
    localWordBase.updateTime = Long.parseLong(paramAttributes.getValue(paramAttributes.getIndex("updatetime")));
    localWordBase.wordsCnt = Long.parseLong(paramAttributes.getValue(paramAttributes.getIndex("wordscnt")));
    localWordBase.downUrl = paramAttributes.getValue(paramAttributes.getIndex("downurl"));
    localWordBase.fileName = paramAttributes.getValue(paramAttributes.getIndex("filename"));
    localWordBase.intro = paramAttributes.getValue(paramAttributes.getIndex("intro"));
    log("getAWrodBase=" + localWordBase);
    return localWordBase;
  }

  public static WordBase parseWordBaseFromHashMap(HashMap<String, String> paramHashMap)
  {
    if (paramHashMap == null);
    WordBase localWordBase;
    for (Object localObject = null; ; localObject = localWordBase)
    {
      return localObject;
      localWordBase = new WordBase();
      localWordBase.id = Integer.parseInt(((String)paramHashMap.get("_id")).toString());
      localWordBase.name = ((String)paramHashMap.get("name"));
      localWordBase.fileSize = Integer.parseInt(((String)paramHashMap.get("filesize")).toString());
      localWordBase.wordsCnt = Long.parseLong(((String)paramHashMap.get("wordscnt")).toString());
      localWordBase.updateTime = Long.parseLong(((String)paramHashMap.get("updatetime")).toString());
      localWordBase.fileName = ((String)paramHashMap.get("filename"));
      localWordBase.downUrl = ((String)paramHashMap.get("downurl"));
      localWordBase.intro = ((String)paramHashMap.get("intro"));
      log("getAWrodBase=" + localWordBase);
    }
  }

  public static ArrayList<WordBase> parseWordBaseListFromXmlInputStream(InputStream paramInputStream)
    throws SAXException, IOException, ParserConfigurationException, FactoryConfigurationError
  {
    ArrayList localArrayList = new ArrayList();
    SAXParserFactory.newInstance().newSAXParser().parse(paramInputStream, new 1(localArrayList));
    return localArrayList;
  }

  public static ArrayList<WordBase> parseWordBasesFromCursor(Cursor paramCursor)
  {
    Object localObject;
    if (paramCursor == null)
    {
      localObject = null;
      return localObject;
    }
    ArrayList localArrayList = new ArrayList();
    paramCursor.moveToFirst();
    while (true)
    {
      if (paramCursor.isAfterLast())
        localObject = localArrayList;
      localArrayList.add(parseAWordBaseFromCursor(paramCursor));
    }
  }

  public String getDownUrl()
  {
    return this.downUrl;
  }

  public String getFileName()
  {
    return this.fileName;
  }

  public int getFileSize()
  {
    return this.fileSize;
  }

  public int getId()
  {
    return this.id;
  }

  public String getIntro()
  {
    return this.intro;
  }

  public String getName()
  {
    return this.name;
  }

  public String getTbExtName()
  {
    return this.tbExtName;
  }

  public long getUpdateTime()
  {
    return this.updateTime;
  }

  public long getWordsCnt()
  {
    return this.wordsCnt;
  }

  public void setDownUrl(String paramString)
  {
    this.downUrl = paramString;
  }

  public void setFileName(String paramString)
  {
    this.fileName = paramString;
  }

  public void setFileSize(int paramInt)
  {
    this.fileSize = paramInt;
  }

  public void setId(int paramInt)
  {
    this.id = paramInt;
  }

  public void setIntro(String paramString)
  {
    this.intro = paramString;
  }

  public void setName(String paramString)
  {
    this.name = paramString;
  }

  public void setUpdateTime(long paramLong)
  {
    this.updateTime = paramLong;
  }

  public void setWordsCnt(long paramLong)
  {
    this.wordsCnt = paramLong;
  }

  public String toString()
  {
    return this.name;
  }
}

/* Location:           E:\Desktop\复件 classes_dex2jar.jar
 * Qualified Name:     cn.funnyxb.powerremember.beans.WordBase
 * JD-Core Version:    0.5.3
 */